<?php
class Jazar_Autolinks_Block_Cms_Block extends Mage_Cms_Block_Block {

    protected function _toHtml () {
    	if ( $html = parent::_toHtml() ) {
            $block = Mage::getModel('cms/block')
        	        ->setStoreId(Mage::app()->getStore()->getId())
        	        ->load($this->getBlockId());

			require_once 'Jazar/Autolinks/Model/Parser.php';
            $html = Jazar_Autolinks_Model_Parser::getInstance()->fetch($html);
    	}
        
        return $html;
    }
    
}
